package org.jeecg.modules.ws.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.jeecg.modules.ws.entity.WsBondProject;
import org.jeecg.modules.ws.mapper.WsBondProjectMapper;
import org.jeecg.modules.ws.service.IWsBondProjectService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.Collections;
import java.util.List;

/**
 * @Description: 债券信息管理_项目
 * @Author: jeecg-boot
 * @Date:   2025-03-27
 * @Version: V1.0
 */
@Service
public class WsBondProjectServiceImpl extends ServiceImpl<WsBondProjectMapper, WsBondProject> implements IWsBondProjectService {

    @Override
    public List<WsBondProject> queryByBondCode(String bondCode) {
        LambdaQueryWrapper<WsBondProject> query = Wrappers.lambdaQuery(WsBondProject.class);
        query.eq(WsBondProject::getBondCode,bondCode);
        return list(query);
    }
}
